package com.xdb.jdbc;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Savepoint;

public class XDBSavepoint implements Savepoint {
	final Connection conn;
	final String savepointName;
	final int savepointId;

	public XDBSavepoint(Connection conn, String savepointName, int savepointId) {
		super();
		this.conn = conn;
		this.savepointName = savepointName;
		this.savepointId = savepointId;
	}

	@Override
	public int getSavepointId() throws SQLException {
		return savepointId;
	}

	@Override
	public String getSavepointName() throws SQLException {
		return savepointName;
	}

}
